Codeplex archive / wiki\Render\1699405\1699405.htmlon commit add archived files (d846247)
   1<div class="wikidoc"><h1>Acceptable Input Formats</h1>
   2<b>Applies to E-Tech Timer 5.0 and above</b><br /><br />This page outlines timespan formats that are accepted in the <i>Start At</i> and <i>Alert At</i> text boxes in Stopwatch mode, and <i>Count down from</i> in Countdown mode. For technical details, see the page on <i>TimeSpan.Parse</i> on MSDN: <a href="http://msdn.microsoft.com/en-us/library/se73z7b9(v=vs.110).aspx">http://msdn.microsoft.com/en-us/library/se73z7b9(v=vs.110).aspx</a>. <br />
   3<h2>Syntax</h2>
   4E-Tech Timer&#39;s input formats are a modified version of the .NET TimeSpan.Parse syntax. E-Tech Timer supports a flexible syntax, meaning that some elements can be omitted to simplify the input.<br /><br /><table><tr><th> Element </th><th> Description </th></tr>
   5<tr><td> hh </td><td> Optional - hours, ranging from 0 to 23. </td></tr>
   6<tr><td> : </td><td> Colon (:), used as a separator. Needed if hours are specified beforehand. </td></tr>
   7<tr><td> mm </td><td> Optional - minutes, ranging from 0 to 59. </td></tr>
   8<tr><td> : </td><td> Colon (:), used as a separator. Needed if minutes are specified beforehand. </td></tr>
   9<tr><td> ss </td><td> Seconds, ranging from 0 to 59. Always necessary. </td></tr>
  10<tr><td> . </td><td> Period (.), used as a separator. Needed if fractions of seconds are specified afterwards. </td></tr>
  11<tr><td> ff </td><td> Optional - fractions of seconds, consisting of one to five digits.</td></tr></table><br />
  12<h2>Examples</h2>
  13<b>12:48:54.01</b> would produce <b>12 hours, 48 minutes, 54 seconds and one hundredth of a second.</b><br /><b>00:01.9</b> would produce <b>one second and nine tenths of a second.</b><br /><b>12:48</b> would produce <b>twelve minutes and forty-eight seconds.</b><br /><b>2.1</b> would produce <b>two seconds and one tenth of a second.</b><br /><br />Many thanks to Alan Patterson for technical advice on implementing the flexible syntax.</div><div class="ClearBoth"></div>